package Service;

import Bean.BeanClass;
import Bean.BeanCourse;

import java.util.ArrayList;

public interface ClassService {
    public BeanClass getClassDetails(int id) throws Exception;
    public ArrayList<BeanClass> getClassesByTeacher(String id) throws Exception;
    public ArrayList<BeanClass> getClasses() throws Exception;
    public ArrayList<BeanClass> getClassesByPlace(int id,String type) throws Exception;
    public ArrayList<BeanClass> getClassesByType(int type) throws Exception;
    public ArrayList<BeanClass> getClassesByKeyword(String keyword) throws Exception;
    public void classAdd(String class_name,String class_url,double class_price,int type,int num,String teacher_id,int place_id) throws Exception;
    public void classDelete(int class_id) throws Exception;
    public void classUpdate(int class_id,String class_name,String class_url,int num,double class_price,String teacher_id,int place_id) throws Exception;
}
